﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Epona.Domain.Query.Impl
{
    public class EmptyCriterion:AbstractCriterion
    {
        public EmptyCriterion()
        { 
        }

        public override IQueryCriterion And(IQueryCriterion criterion)
        {
            return criterion;
        }

        public override IQueryCriterion Or(IQueryCriterion criterion)
        {
            return criterion;
        }

        public override IQueryCriterion Not()
        {
            return this;
        }

        public override bool IsEmpty()
        {
            return true;
        }

        public override string ToQueryString()
        {
            return "";
        }

        public override NamedParameters GetParameters()
        {
            return NamedParameters.Create();
        }
    }
}
